/* 体质监测 */
import ajax from '@/libs/ajax'

/**
 * 附近监测点
 * @param {*} data
 */
const API_PHYSICAL_NEARBY = (data) => ajax('/pub/getNearPhysicalExamination', 'get', data)

/**
 * 附近列表
 * @param {*} data
 */
const API_PHYSICAL_LIST = (data) => ajax('/pub/getPhysicalExaminationPaging', 'get', data)

/**
 * 详情
 * @param {*} id 监测点id
 */
const API_PHYSICAL_DETAIL = (id) => ajax(`/pub/physicalExaminationInfo/${id}`, 'get')

const API_PHYSICAL_BOOK = (data) => ajax('/v1/orderInfo/bookPhysicalExamination', 'post', data)

// 订单列表
const API_PHYSICAL_ORDERS = (data) => ajax('/v1/orderInfo/getPhysicalExamination', 'post', data)

export {
  API_PHYSICAL_NEARBY,
  API_PHYSICAL_LIST,
  API_PHYSICAL_DETAIL,
  API_PHYSICAL_BOOK,
  API_PHYSICAL_ORDERS
}
